package com.jintian.smart.kernel.flowable.flowable.common;

import java.util.HashMap;
import java.util.Map;

public enum VariablesEnum {
    /**
     * 提交人
     */
    submitter(false),
    /**
     * 审批操作
     */
    approveOpr(false),
    /**
     * 员工编号
     */
    userId(false),
    /**
     * 组织机构
     */
    orgCode(false),
    /**
     * 组织机构名称
     */
    orgName(false),
    /**
     * 业务主键ID
     */
    businessKey(false),
    /**
     * 审批状态
     */
    auditStatus(false);
    private final boolean shouldLike;

    private VariablesEnum(boolean shouldLike) {
        this.shouldLike = shouldLike;
    }

    public boolean isShouldLike() {
        return shouldLike;
    }

    private static final Map<String, VariablesEnum> map = new HashMap<>();

    static {
        for (VariablesEnum var : VariablesEnum.values()) {
            map.put(var.name(), var);
        }
    }

    public static VariablesEnum of(String name) {
        return map.get(name);
    }
}
